package com.caiyouxi.partner.model;

import com.caiyouxi.common.bean.QueryParams;

import java.io.Serializable;
import java.util.Date;

public class CpContractBean extends QueryParams implements Serializable {

    private  Integer cp_id; //该游戏所属的CP 编号。即在 partner：合作伙伴信息表 中，type =CP 的该游戏所属游戏开放商的编号。

    private Integer app_id; // 应用/游戏编号

    private Integer doubtful_percent; //疑单率。百分比数值，比如允许5%的疑单率，那么这里填写5。如果设置了疑单率，则一般我们会将结算周期内的总流水，扣除该金额后再与 cp 进行结算。

    private Double proportion; //我方获得的分成比例。比如，用户充值100元，游戏方获得45元，我们获得55元，那么这里就填写55。如果设置了阶梯，那么这里就是基础分佣比例。

    private String step_proportion; //阶梯分佣比例。

    private String contract_file; //和 CP 的合同文件地址（如果有）

    private String contract_num; //和 CP 的合同编号

    private Date contract_begin_date; //和 CP 的合同开始日期

    private Date contract_end_date; //和 CP 的合同结束日期

    private String balance_date; //和 CP 的结算日期，格式为：xMxD。其中0M 表示本月；0D 表示本月的月底（30日或31日）

    private Integer need_channel_advances; // 是否需要渠道支付预付款。0-否；1-是。

    private Double channel_default_proportion; //下发给渠道时，该游戏渠道获得分成比例的默认值

    private String channel_default_step_proportion; //该游戏渠道获得阶梯分成比例。参见 step_proportion 字段的说明。

    private Date create_time; //创建时间

    private Date update_time; //更新时间

    private Integer created_by; //创建人

    private Integer updated_by; //	更新人

    public Integer getCp_id() {
        return cp_id;
    }

    public void setCp_id(Integer cp_id) {
        this.cp_id = cp_id;
    }

    public Integer getApp_id() {
        return app_id;
    }

    public void setApp_id(Integer app_id) {
        this.app_id = app_id;
    }

    public Integer getDoubtful_percent() {
        return doubtful_percent;
    }

    public void setDoubtful_percent(Integer doubtful_percent) {
        this.doubtful_percent = doubtful_percent;
    }

    public Double getProportion() {
        return proportion;
    }

    public void setProportion(Double proportion) {
        this.proportion = proportion;
    }

    public String getStep_proportion() {
        return step_proportion;
    }

    public void setStep_proportion(String step_proportion) {
        this.step_proportion = step_proportion;
    }

    public String getContract_file() {
        return contract_file;
    }

    public void setContract_file(String contract_file) {
        this.contract_file = contract_file;
    }

    public String getContract_num() {
        return contract_num;
    }

    public void setContract_num(String contract_num) {
        this.contract_num = contract_num;
    }

    public Date getContract_begin_date() {
        return contract_begin_date;
    }

    public void setContract_begin_date(Date contract_begin_date) {
        this.contract_begin_date = contract_begin_date;
    }

    public Date getContract_end_date() {
        return contract_end_date;
    }

    public void setContract_end_date(Date contract_end_date) {
        this.contract_end_date = contract_end_date;
    }

    public String getBalance_date() {
        return balance_date;
    }

    public void setBalance_date(String balance_date) {
        this.balance_date = balance_date;
    }

    public Integer getNeed_channel_advances() {
        return need_channel_advances;
    }

    public void setNeed_channel_advances(Integer need_channel_advances) {
        this.need_channel_advances = need_channel_advances;
    }

    public Double getChannel_default_proportion() {
        return channel_default_proportion;
    }

    public void setChannel_default_proportion(Double channel_default_proportion) {
        this.channel_default_proportion = channel_default_proportion;
    }

    public String getChannel_default_step_proportion() {
        return channel_default_step_proportion;
    }

    public void setChannel_default_step_proportion(String channel_default_step_proportion) {
        this.channel_default_step_proportion = channel_default_step_proportion;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public Integer getCreated_by() {
        return created_by;
    }

    public void setCreated_by(Integer created_by) {
        this.created_by = created_by;
    }

    public Integer getUpdated_by() {
        return updated_by;
    }

    public void setUpdated_by(Integer updated_by) {
        this.updated_by = updated_by;
    }
}